package org.lemon.cla.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.lemon.cla.enums.ClubMemberRoleEnum;

@Data
@Schema(description = "社团成员创建请求对象")
public class ClubMemberCreateRequest {

    @NotNull(message = "用户ID不能为空")
    @Schema(description = "用户ID", example = "1", required = true)
    private Long userId;

    @NotNull(message = "社团ID不能为空")
    @Schema(description = "社团ID", example = "1", required = true)
    private Long clubId;

    @NotNull(message = "社团内角色不能为空")
    @Schema(description = "社团内角色", example = "成员", allowableValues = {"成员", "社长"}, required = true)
    private ClubMemberRoleEnum role;

    // joinTime 和 status 由后端自动设置，无需客户端传入
}